import 'package:boss/color_constant.dart';
import 'package:boss/textStyle/text_style.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class CommodityHeader extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DefaultTextStyle(
      style: TextStyleConstant().normal_2_28,
      child: Container(
        height: 80.w,
        color: ColorConstant.ffcc.withOpacity(0.1),
        alignment: Alignment.center,
        child: Row(
          children: <Widget>[
            Expanded(
              child: Center(child: Text('菜品名称')),
              flex: 2,
            ),
            Expanded(
              child: Center(child: Text('销量')),
              flex: 2,
            ),
            Expanded(
              child: Center(child: Text('金额')),
              flex: 2,
            ),
            Expanded(
              child: Center(child: Text('操作')),
            ),
          ],
        ),
      ),
    );
  }
}
